<?php

use peng\helpers\Html;
?>
<div class="headtheme" id="mainhead">
    <div class="CWL CWR">
        <ul class="cfl">
            <li><?php echo Html::a('用户登录', '/account/login'); ?></li>
            <li><?php echo Html::a('用户注册', '/account/signup'); ?></li>
            <li><?php echo '欢迎您 '; ?>
                <?php
                $account = $this->readAccount();
                if (isset($account)) {
                    $loginName = substr_replace($account->loginname, '****', 3, 4);
                    echo Html::a('退出[' . $loginName . ']', '/account/loginout');
                }
                ?>  
            </li>
        </ul>
        <ul class="cfr">
            <li><?php echo Html::a('手机运保宝', '/site/app'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('我的运单', '/site/center'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('我的运保宝', '/site/my'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('客户服务', '/site/services'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('关于我们', '/site/about'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('联系我们', '/site/linkus'); ?></li>
            <li>|</li>
            <li><?php echo Html::a('使用指南', '/site/help'); ?></li>
        </ul>
        <span class="clr"></span>
    </div>
</div>
<div id="mainbodyhead" class="CWL CWR">	
    <div id="adinfo">
        <div class="adbg"><p class="adclose">关闭</p></div>
    </div>
    <div id="logohead">
        <div class="logotheme">
            <ul class="logocfl">
                <li><img src="<?php echo $this->cssPath; ?>web/images/r11.jpg" width="50" height="50px" /></li>
                <li><br /><i>有保障的运输中心</i></li>
            </ul>			
            <ul class="logocfr">
                <li><span class="send">免费发布信息</span></li>
            </ul>
            <div id="searchbar">
                <div id="saerkey">
                    <span id="key">
                        <input type="text" id="keyword" name="key" class="keyword" value="搜索车源" onBlur="win.closeToolTipWindow();
                                if (this.value == '')
                                    this.value = '搜索车源', this.className = 'keyword'" nKeyUp="win.GetContentData();" onFocus="if (this.value == '搜索车源')
                                                this.value = '', this.className = 'keyword2'" autocomplete="off" tongji_tag="pc_home_search_area_sh"/>
                    </span>
                </div>
                <div class="inputcon"><input  type="submit" name="button" id="searchbtn" class="btnall"  value="搜索" onMouseMove="this.className = 'btnal2'" onMouseOut="this.className = 'btnall'"/></div>
                <div class="clr"></div>
                <div class="search-no">
                    <span id="hot"><a href="">零担</a><a href="">整车</a></span>
                    <span><a id="search_hot2_3" href="" rel="nofollow" onclick="">快速加盟</a><a href="" style="color:red">立即抽奖</a><a onClick="" href="" rel="nofollow" class="cs" tongji_tag="pc_home_topad8_sh">同城运输</a></span>
                </div>
            </div>
            <span class="clr"></span>
        </div>
    </div>	
</div>
<div class="nav_container">
    <?php if (\Peng::$app->uri->getRUri() !== 'site/index'): ?>
        <div class="nav_container">   
            <ul class="nav1">
                <li><?php echo Html::a('首页', '/site/index'); ?></li>
                <li><?php echo Html::a('找车', '/site/listcars'); ?></li>
                <li><?php echo Html::a('配货', '/site/list'); ?></li>
                <li><?php echo Html::a('优质货源', '/site/goodlist'); ?></li>
                <li><?php echo Html::a('特惠车主', '/site/goodcarlist'); ?></li>
                <li><?php echo Html::a('货主入驻', '/site/join'); ?></li>
                <li><?php echo Html::a('车主加盟', '/site/joincar'); ?></li> 
                <li class="send1"><?php echo Html::a('空车发布', '/site/kongche'); ?></li>
                <li class="send1"><?php echo Html::a('快速发货', '/site/sendgoods'); ?></li>
                <li class="send1"><?php echo Html::a('推荐货主', '/site/tuijian'); ?></li>
                <li class="send1"><?php echo Html::a('推荐司机', '/site/tuijian'); ?></li>
            </ul>
        </div>
    <?php endif; ?>